﻿namespace Rmq.Center
{
    public class OrderUnpickupingChkMsg
    {
        /// <summary>
        /// 订单类型
        /// </summary>
        public OrderType OrderType { get; set; }

        /// <summary>
        /// 订单Id
        /// </summary>
        public int OrderId { get; set; }       
    }

    public class OrderUnpickupingChkProducer : BaseProducer<OrderUnpickupingChkMsg>
    {
        public OrderUnpickupingChkProducer()
            : base(Const.RoutingKeys.OrderUnpickupingChk)
        {
        }
    }

    public class OrderUnpickupingChkConsumer : BaseConsumer<OrderUnpickupingChkMsg>
    {
        public OrderUnpickupingChkConsumer()
            : base(Const.QueueNames.OrderUnpickupingChk, Const.RoutingKeys.OrderUnpickupingChk)
        { }
    }
}